<template>
    <div class="container">
<el-input placeholder="请输入绑定的手机号" v-model="mobile"></el-input>
<el-button @click="bindmobile">点击绑定</el-button>
    </div>
</template>

<script>
export default {
    name: 'WBZZ',
    data() {
        return {
            mobile:"",
            uid:"",
            token:""
        };
    },
 

   


    mounted() {},

    methods: {
        bindmobile(){
            this.axios.post("/bindMobile",{"mobile":this.mobile,"uid":this.$route.query.uid,"token":this.$route.query.token})
            .then(resp=>{
                console.log(resp)
                 localStorage.setItem("token",resp.data.token)
                localStorage.setItem("userid",resp.data.userid)
                this.$router.push("/")

            })
        }
    },

};
</script>

<style scoped ></style>
